<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY copy "&#169;">
  <!ENTITY nbsp "&#160;">
  <!ENTITY laquo "&#171;">
  <!ENTITY raquo "&#187;">
]>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">


  <xsl:include href="../layout.xsl"/>

  <xsl:template match="/">
    <xsl:apply-templates />
  </xsl:template>

  <xsl:template match="content">
    <script type="text/javascript" src="/js/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript" src="/js/tiny_mce/tiny_config.js"></script>

    <link href="/js/swfupload/default.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/js/swfupload/swfupload.js"></script>

    <script type="text/javascript" src="/js/swfupload/form/fileprogress.js"></script>
    <script type="text/javascript" src="/js/swfupload/form/handlers.js"></script>
    <script type="text/javascript" src="/js/swfupload/form/config.js"></script>

    <!--<script type="text/javascript" src="/js/swfupload/fileprogress.js"></script>-->
    <script type="text/javascript" src="/js/swfupload/handlers.js"></script>
    <script type="text/javascript" src="/js/swfupload/handlers_editor.js"></script>
    <script type="text/javascript" src="/js/swfupload/config.js"></script>

    <div class="contenthead">
      <input type="hidden" id="upload_url" value="/{$Controller}/uploadphotos/id/{$Form/id}"/>


      <xsl:call-template name="Create_Path">
        <xsl:with-param name="last" select="/page/content/Main/form/title"></xsl:with-param>
      </xsl:call-template>
      <div class="top">
        <span class="title">
          <xsl:value-of select="$Cats/row[id=$Content/@cat]/title" />
        </span>
      </div>
    </div>

    <xsl:call-template name="Lang"/>

    <form action="" method="post" name="form" id="form" enctype="multipart/form-data" >

      <aside>
        <xsl:call-template name="Box-Avatar" />

        <div class="head-slide on">
          Настройки
        </div>
        <div class="container">
          <ul class="editlist">
            <li>
              <label>
                ID Title (<a href="javascript:;" onclick="refreshIDT({$Main/@id}, '{$Controller}')">Генерировать из названия меню</a>)
              </label>

              <input name="idt" type="text" value="{$Form/idt}" class="broad100" id="idt"/>

            

            </li>
            <li>
              <ul>
                <li>
                  <input name="is_active" type="checkbox" value="1">
                    <xsl:if test="$Form/is_active = 1">
                      <xsl:attribute name="checked">checked</xsl:attribute>
                    </xsl:if>
                  </input>
                  Активная
                </li>
                <li>
                  <input name="is_top" type="checkbox" value="1">
                    <xsl:if test="$Form/is_top = 1">
                      <xsl:attribute name="checked">checked</xsl:attribute>
                    </xsl:if>
                  </input>
                  Топ
                </li>
              </ul>
            </li>
            

          </ul>



        </div>

      </aside>


      <article>


        <xsl:call-template name="Messages" />

        <fieldset>

          <input type="hidden" id="id" value="{$Form/id}" rel="id_article"/>




          <!-- Русский -->
          <div id="page_1" style="display: block" class="page">
            <ul class="editlist">

              <li>
                <label>Заголовок</label>

                <input name="title_ru" type="text" id="title" value="{Main/form/title_ru}" class="broad100"/>

              </li>

              <li>
                <label>Описание</label>

                <textarea name="desc_ru" class="broad100" rows="5" id="body1">
                  <xsl:value-of select="Main/form/desc_ru"/>
                </textarea>

              </li>


            </ul>
          </div>
        </fieldset>
        <!-- Украинский -->
        <div id="page_2" style="display: none" class="page">
          <fieldset>
            <ul class="editlist">

              <li>
                <label>Заголовок</label>

                <input name="title_ua" type="text" id="title" value="{Main/form/title_ua}" class="broad100"/>

              </li>

              <li>
                <label>Описание</label>

                <textarea name="desc_ua" class="broad100" rows="5" id="body2">
                  <xsl:value-of select="Main/form/desc_ua"/>
                </textarea>

              </li>

            </ul>
          </fieldset>
        </div>

      </article>

      <div class="submitbox">
        <input name="save" type="submit" style="font-weight: bold;" value="Сохранить" />
        <input name="saveexit" type="submit" value="Сохранить и выйти" />
        <input type="button" value="Отменить" onclick="document.location = '/{$Controller}/'"/>
      </div>
    </form>

    <script type="text/javascript" src="212.26.144.104:1204/js/tags_auto.js"></script>
  </xsl:template>

</xsl:stylesheet>